#include<stdio.h>
#include<stdlib.h>
#define len(array) sizeof(array)/sizeof(*array)
int compar(const void *e1, const void *e2);

int main(){
    int num[100];
    for(int i=0;i<len(num);i++){
        num[i] = rand();
    }
    
    qsort(num, len(num), sizeof(num[0]), compar);

    for(int i=0;i<len(num);i++){
        printf("%d ", num[i]);
    }
    return 0;
}

int compar(const void *e1, const void *e2){
    return (*(int *)e1 - *(int *)e2);
}